<?php
/**
 * Pipahr
 *
 * @author Wei Ma
 * @copyright 2013 pipahr.com
 */
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict
OC_Util::$core_styles = array();

if (isDevMode()) {
   OCP\Util::addStyle('interview', 'interview');
} else {
   OCP\Util::addStyle('static', 'interview');
}

$lang = PFactory::getLanguage();
$lang->load("com_jobs", JPATH_SITE, "zh-CN");
?>
<?php if(empty($_['sheetid'])): 
         $company_url = PInterviewHelper::getCompanyUrl($_['jobposInfo']->sub_domain,0);
         $company_url = $company_url ? $company_url."?utp=nocp" : '';
?>
<div class="row-fluid">
   <div class="span12">
      <div class="company_info_box clearfix">
         <div class="company_showimg pull-left">
            <?php if (!empty($company_url)) : ?>
            <a href="<?=$company_url?>" target="_blank">
               <img src="<?php echo PCompanyHelper::showCompanyAvatar($_['jobposInfo']->avatar, $_['jobposInfo']->avatarapproved);?>" class="cpy_logo_mid"/>
            </a>
            <?php else : ?>
            <img src="<?php echo PCompanyHelper::showCompanyAvatar($_['jobposInfo']->avatar, $_['jobposInfo']->avatarapproved);?>" class="cpy_logo_mid"/>
            <?php endif;?>
         </div>
         <div class="company_showinfo">
            <h4 class="yahei">
               <?php if (!empty($company_url)) : ?>
               <a href="<?=$company_url?>" target="_blank"><?=$_['jobposInfo']->comp_name?></a>
               <?php else : ?>
               <?=$_['jobposInfo']->comp_name?>
               <?php endif;?>
               <i class="<?php echo $_['jobposInfo']->validated == EMPLOYER_VALIDATED ? "is_approve" : "not_approve";?>"></i>
            </h4>
            <ul class="company_listinfo medium">
               <li>行业：<?php echo $_['jobposInfo']->industry ? JText::_($_['jobposInfo']->industry) : '未填写';?></li>
               <li>性质：<?php echo $_['jobposInfo']->comp_type ? JText::_($_['jobposInfo']->comp_type) : '未填写';?></li>
               <li>规模：<?php echo $_['jobposInfo']->size_type ? JText::_($_['jobposInfo']->size_type) : '未填写';?></li>
               <li>所在地区：<?php echo !empty($_['jobposInfo']->cstate) || !empty($_['jobposInfo']->ccity) ? $_['jobposInfo']->cstate.$_['jobposInfo']->ccity : "未填写";?></li>
            </ul>
         </div>
      </div>
   </div>
</div>

<div class="container">
   <div class="row-fluid">
      <div class="span12 blackbottom">
         <div class="company_position_show clearfix">
            招聘职位：<?php echo $_['jobposInfo']->job_title ? $_['jobposInfo']->job_title : '未填写';?> |
            工作城市：<?php echo ($_['jobposInfo']->state || $_['jobposInfo']->city) ? ($_['jobposInfo']->state == $_['jobposInfo']->city ? $_['jobposInfo']->state : $_['jobposInfo']->state.' '.$_['jobposInfo']->city) : '未填写'; ?> |
            薪水：<?php echo $_['jobposInfo']->salary_type ? $_['jobposInfo']->salary_type : '未填写';?> |
            经验：<?php echo $_['jobposInfo']->exp_name ? JText::_($_['jobposInfo']->exp_name) : '未填写';?> |
            招聘人数：<?php echo $_['jobposInfo']->num_needed ? $_['jobposInfo']->num_needed : '未填写';?>
         </div>
      </div>
   </div>
</div>

<div class="container">
   <div class="row-fluid">
      <div class="span12">
         <div class="company_qes_fixed large clearfix"><?=$_['jobposInfo']->job_title;?>职位性格评测</div>
      </div>
   </div>
</div>
<?php endif; ?>
<div class="container">
   <div class="row-fluid">
      <div class="span12">
         <div class="company_qes_fixed large clearfix">职位性格评测</div>
      </div>
   </div>
</div>
<div class="row-fluid hr_oneconn_margin">
   <div class="span12 oneconn_box">
      <div class="lgrg_form">
         <div class="hr_inputinfo">
            <div class="hr_testerinfo_input">
               <div class="test_sub_des">
                  <div class="test_sub_success"><img src="/images/3/submit_success.png"/></div>
                  <div class="test_notice">您的评测结果已经提交，<?php if(empty($_['sheetid'])){ echo '我们将尽快通知您应聘进展，请注意在个人中心查看。' ;}else{
                  	echo '请回到评测管理页面查看您的评测结果';
                  }?></div>
                  <div class="test_otherlink">
                     <div class="ready_btn ready_btn_top">
                        <a href="<?=OC_Helper::linkToRoute("jobseeker_home");?>" class="ppp_bluebtn ready_btn_width">进入个人中心</a>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>
